app.controller('BusTaskDetailCtrl', function ($scope, $stateParams, ajax) {

    $scope.taskId = $stateParams.taskId;

    $scope.reload = function () {
        ajax.call(new Req.GET({
            resource: 'task/bs/' + $scope.taskId + '/id'
        })).then(function (result) {
            if (result.code && result.code == 200) {
                $scope.task = result.result;
            }
        }, function () { });
    };

    $scope.reload();
});